package com.xyf.sys.service;

import com.xyf.sys.domain.OrderProfitsharing;

import java.util.List;

/**
 * @Author R-H
 * @Date 2024/7/151024
 * @Description
 */
public interface IOrderProfitsharingService {

    /**
     * 查询商户分账列表
     *
     * @param orderId 订单id
     * @return 商户分账集合
     */
    List<OrderProfitsharing> getOrderProfitsharingList(String orderId);

    /**
     * 查询商户分账列表
     * @param orderId
     * @param outOrderNo
     * @return
     */
    List<OrderProfitsharing> getOrderProfitsharingList(String orderId, String outOrderNo);

    /**
     * 新增商户分账
     *
     * @param profitsharing 商户分账
     * @return 结果
     */
    int save(OrderProfitsharing profitsharing);

    /**
     * 修改商户分账
     *
     * @param orderProfitsharing 商户分账
     * @return 结果
     */
    int update(OrderProfitsharing orderProfitsharing);
}
